Component({
  mixins: [],
  data: {
    value: [0]
  },
  props: {
    show: false,
    shopList: [],
    onClose: () => { },
    onChange: () => { }
  },
  didMount() { },
  didUpdate() { },
  didUnmount() { },
  methods: {
    onChange(e) {
      this.setData({
        value: e.detail.value
      })
    },
    onHideModal() {
      this.setData({
        value: [0]
      })
      this.props.onClose()
    },
    onConfirm() {
      this.props.onChange(this.props.shopList[this.data.value[0]])
    }
  },
});
